package com.lagou.edu.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value="lagou-service-code",fallback = CodeFallback.class,path = "/code")
public interface CodeFeignClient {

    @RequestMapping("/validate/{email}/{code}")
    int validate(@PathVariable("email") String email, @PathVariable("code") String code);
}
